package com.five.community.service;

import com.five.community.bean.Asset;
import com.five.community.bean.vo.AssetVo;

import java.util.List;

public interface AssetService {
    List<AssetVo> selectAll() throws Exception;

    void deleteById(long id) throws Exception;

    void insert(Asset asset) throws Exception;

    List<AssetVo> selectByName(String name) throws Exception;

    Asset selectById(long id) throws Exception;

    void update(Asset asset) throws Exception;

    List<AssetVo> selectAllAssets(Integer pageNum, Integer pageSize) throws Exception;

    List<AssetVo> selectAllByName(Integer pageNum, Integer pageSize, String name) throws Exception;
}
